Skip to content

Conversation

@stfra-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Dec 15, 2025

Pull request status dashboard

…ta in list view and create/edit property data in form view

The model was created and access rights provided but there was no interaction with the model.  This is implemented through xml as its is mre convinient for complex data. There is one menu to acces the list view of the properties and a form views is displayed whend creating or editing a property. Some fields have now a default value, some are read-only, some are requiered and some cannot be copied when duplicated. The fields active and state were added for properties display in the list view by default and for it to have a different state depending on the stage respectively.
…the estate module.

The views created were basic one and need some custumization to be use in a business application.

List view:
the following fields have been added: Title, Postcode, bedrooms, Living Area (sqm), Expected Price, Selling Price, Available From

Form view:
It is now composed of groups and a notebook with a page description

Search view:
Search has now other predifened shorcuts (Title, Postcode, expectedPrice, Bedrooms, Living Area, Facades), a predefined filter "Available" (that looks for properties with the state New or Offer received) and a Group by filter on the postcodes
…: buyer, salesperson, property type, list of tags and list of offers.

Buyer
Can be any individual (res.partner)

Salesperson
Has to be an employe (res.user)

Property type
New model with the name of the type (estate.property.type)

Tags
New model with the name of the tag (estate.property.tag)

Offers
New model with the buyer, price, status and property id (estate.property.offer)

All those new models have list and form view but the offer model is only accessible from the porperty form (as each offer is linked to a property)

A new menu setting has been added to allow the creation of new tags and types.
Copy link

@ushyme ushyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work so far; I just have one small remark.

… area in estate property and validity and deadline in property offer).

Best price is computed on the maximum price of all the offers linked to the property.

Total area is computed as the sum of the lving area and garden area.

Validity is the number days that have passed since the creation of the offer during wich it remains valid.

Deadline is the date until wich the offer remains valid. It is computed based on validity and when changed, updates validity.
@ushyme
Copy link

ushyme commented Dec 19, 2025

Runbot is still red 😃

Previewsly made pull request could not pass because of the linting issues.
…s offers.

The state of a property and its offer could only be changed manually which is not safe way of handling those status.

Now buttons have been added : sold and cancel for the property and accept and refuse for the offers. An error pop-up is shown when trying to perfom an illegal action.
… on the models.

Estate property model:
- SQL constraints: check that theexpected price is stricly positive and selling price positive.
- Python constraint: check that the selling price is at least 90% of the expected price when one of them is modified.

Estate property offer model:
- SQL constraint: check that the price is strictly positive.

Estate property tag model:
- SQL constraint: check that the name tag is unique.

Estate property type model:
- SQL constraint: check that the name type is unique.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants